CXX = g++ -std=c++11
#CXX = g++
CXXFLAGS = 
LIB = -lncurses -lmenu 
#TARGETS = file_parse_ec_io ncurses_snake box_move
TARGETS = ncurses_snake box_move menu_subwin
#ehco $(TARGETS)

TGT_SRCS = $(wildcard ./*.cpp)
#TARGETS = $(patsubst %cpp,%out,$(TGT_SRCS))

SOURCE = $(wildcard ./lib_json/*.cpp)

all:$(TARGETS)


$(TARGETS):$(SOURCE) $(LIB)

.PHONY:clean
clean:
	find . -name "*.o" | xargs rm -rf
	find . -name "*~" | xargs rm -rf
	find . -name "*#" | xargs rm -rf
	rm -rf $(TARGETS)

